package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ProjectAnalyzeMapper;
import com.zch.dao.model.ProjectAnalyze;
import com.zch.dao.model.ProjectAnalyzeExample;
import com.zch.daoEx.ProjectAnalyzeMapperEx;
import com.zch.daoEx.model.ProjectAnalyzeEx;

@Service
public class ProjectAnalyzeService {
	@Autowired
	private ProjectAnalyzeMapper projectAnalyzeMapper;
    @Autowired
    private ProjectAnalyzeMapperEx projectAnalyzeMapperEx;	

	public int countByExample(ProjectAnalyzeExample example) {
		return this.projectAnalyzeMapper.countByExample(example);
	}

	public ProjectAnalyze selectByPrimaryKey(String id) {
		return this.projectAnalyzeMapper.selectByPrimaryKey(id);
	}

	public List<ProjectAnalyze> selectByExample(ProjectAnalyzeExample example) {
		return this.projectAnalyzeMapper.selectByExample(example);
	}


	public int deleteByPrimaryKey(String id) {
		return this.projectAnalyzeMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(ProjectAnalyze record) {
		return this.projectAnalyzeMapper.updateByPrimaryKeySelective(record);
	}


	public int updateByPrimaryKey(ProjectAnalyze record) {
		return this.projectAnalyzeMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ProjectAnalyzeExample example) {
		return this.projectAnalyzeMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(ProjectAnalyze record, ProjectAnalyzeExample example) {
		return this.projectAnalyzeMapper.updateByExampleSelective(record, example);
	}


	public int updateByExample(ProjectAnalyze record, ProjectAnalyzeExample example) {
		return this.projectAnalyzeMapper.updateByExample(record, example);
	}

	public int insert(ProjectAnalyze record) {
		return this.projectAnalyzeMapper.insert(record);
	}

	public int insertSelective(ProjectAnalyze record) {
		return this.projectAnalyzeMapper.insertSelective(record);
	}

    public List<ProjectAnalyzeEx> selectList(Map<String, Object> map) {
        return this.projectAnalyzeMapperEx.selectList(map);
    }

    public int updateConnectMaster(String userId, String id) {
        this.projectAnalyzeMapperEx.updateConnectMaster(userId,id);
        return this.projectAnalyzeMapperEx.updateConnectMasterByProjectMessage(userId,id);
        
    }

    public ProjectAnalyzeEx selectAppDetailByInside(Map<String, Object> map) {
        return this.projectAnalyzeMapperEx.selectAppDetailByInside(map);
    }

}
